<?php
defined("VALIDASI") or die ('Tidak diperkaenankan mengakses file ini secara langsung !');
if($_SESSION[level]=='beli'){
$data_supplier=mysql_fetch_array(mysql_query("select * from tblsupplier where IDSupplier='$_GET[id]'"));
?>
<h3>Penambahan Data Supplier</h3>
<p>Jika anda ingin menambah data supplier, silahkan isi kolom yang telah disediaka.<p>
<form name="f1" method=post action="index.php?file=supplier_update">
<table width="100%">
<tr><td width="150">Kode Supplier</td>
<td><input type="text" name="kode_supplier" maxlength="6" value="<?php echo $data_supplier[IDSupplier]; ?>" readonly="yes"></td></tr>
<tr><td>Nama Supplier</td>
<td><input type="text" name="nama_supplier" size="35" value="<?php echo $data_supplier[NamaSupplier]; ?>"></td></tr>
<tr valign=top"><td>Alamat Supplier</td>
<td><textarea name="alamat_supplier" rows="5" cols="30"><?php echo $data_supplier[AlamatSupplier]; ?></textarea></td></tr>
<tr><td>No.Telp/Fax</td>
<td><input type="text" name="telp_supplier" size="20" value="<?php echo $data_supplier[Telpon]; ?>"></td></tr>
<tr><td colspan="2"><input type="submit" name="simpan" value="Simpan"></td></tr></table></form>
<?php
include('supplier_view.php');
}
else {
echo "Maaf Akses Di Tolak!";
} 
?>

?>